package com.liyy.platform.other.collection.collection1;

import java.util.HashSet;
import java.util.Set;

/**
 * 测试Set的常用方法！
 * @author Administrator
 *
 */
public class TestSet {

	public static void main(String[] args) {
		Set set = new HashSet();
		set.add("aaa");
		set.add("bbb");
		set.add(new String("aaa"));
		System.out.println(set.size());
		System.out.println(set.contains("aaa"));
		set.remove("aaa");
		
	}

}
